package com.yundong.gongchengji.ui.my.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.yundong.gongchengji.R;
import com.yundong.gongchengji.base.BaseActivity;
/**
 * 我的设置
 * Created by ls on 2017/2/21.
 */

public class MySettingActivity extends BaseActivity {
    private View titlePhone;
    private View titleDeng;
    private View titleJiaoyi;
    private View titleHelp;
    private View titleAbout;
    private View titlePingtai;

    private TextView xianshiPhone;
    private TextView xianshiDeng;
    private TextView xianshiJiaoyi;
    @Override
    public int getContentViewId() {
        return R.layout.activity_my_setting;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        setLeft();
        setTitle("设置");
        titlePhone=findViewById(R.id.title_phone);
        titleDeng=findViewById(R.id.title_deng);
        titleJiaoyi=findViewById(R.id.title_jiaoyi);
        titleHelp=findViewById(R.id.title_help);
        titleAbout=findViewById(R.id.title_about);
        titlePingtai=findViewById(R.id.title_pingtai);
        xianshiPhone= (TextView) titlePhone.findViewById(R.id.text_xianshi);
        xianshiDeng= (TextView) titleDeng.findViewById(R.id.text_xianshi);
        xianshiJiaoyi= (TextView) titleJiaoyi.findViewById(R.id.text_xianshi);
    }

    @Override
    protected void initVariable() {
        ((TextView)titlePhone.findViewById(R.id.text_context)).setText("手机号码");
        ((TextView)titleDeng.findViewById(R.id.text_context)).setText("登陆密码");
        ((TextView)titleJiaoyi.findViewById(R.id.text_context)).setText("交易密码");
        ((TextView)titleHelp.findViewById(R.id.text_context)).setText("帮助中心");
        ((TextView)titleAbout.findViewById(R.id.text_context)).setText("关于我们");
        ((TextView)titlePingtai.findViewById(R.id.text_context)).setText("平台介绍");
        xianshiPhone.setText("修改");
        xianshiPhone.setVisibility(View.VISIBLE);
        xianshiDeng.setText("修改");
        xianshiDeng.setVisibility(View.VISIBLE);
        xianshiJiaoyi.setText("修改");
        xianshiJiaoyi.setVisibility(View.VISIBLE);
    }

    @Override
    protected void processLogic(Bundle savedInstanceState) {

    }
}
